package com.yd.app.util;

/**
 * Created by Administrator on 2017/3/14.
 */
public class PasswordUtil {
    private final static String[] ZI_MU=new String[]{"1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","j","k","m","n","p","q","r","s","t","v","u","w","x","y","z"};
    public static String getPassword(int num){
        String psw="";
        for(int i=0;i<num;i++){
            int a= (int) (Math.random()*31);
            psw=psw+ZI_MU[a];
        }
        return psw;
    }
   /* public static void  main(String[]args){
        System.out.println(getPassword(5));
    }*/
}
